package com.example.home;

public enum BEnumRespond {
    success(200,"success"),
    failure(201,"failure"),
    noparam(202,"参数不能为空"),
    notoken(203,"token 不能为空"),
    timeout(204,"请求超时"),
    otheror(205,"其他错误");
    BEnumRespond(int code, String message){
        this.code = code;
        this.message = message;
    }
    private int code;
    private String message;
    public void setCode(int code) {
        this.code = code;
    }
    public int getCode() {
        return code;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    public String getMessage() {
        return message;
    }
}
